package com.kaka.dao.daoimpl;

import com.kaka.dao.AdminDao;
import com.kaka.bean.Admin;
import com.kaka.util.MyJDBCUtil;

import java.util.List;

public class AdminDaoImpl implements AdminDao {
    @Override
    public List<Admin> selectByUsernameAndPassword(String username, String password) {
        String sql = "select * from admin where username = ? and password = ?";
        return MyJDBCUtil.dqlSQL(Admin.class,sql,username,password);
    }
}
